﻿using UnityEngine;
using Watermelon;

[System.Serializable]
public class FloatingTextCase
{
    [SerializeField] FloatingTextStyle floatingTextStyle;
    public FloatingTextStyle FloatingTextStyle => floatingTextStyle;

    [SerializeField] FloatingTextBaseBehaviour floatingTextBehaviour;
    public FloatingTextBaseBehaviour FloatingTextBehaviour => floatingTextBehaviour;

    private Pool floatingTextPool;
    public Pool FloatingTextPool => floatingTextPool;

    public void Initialise()
    {
        floatingTextPool = new Pool(new PoolSettings(floatingTextBehaviour.name, floatingTextBehaviour.gameObject, 1, true));
    }
}
